package org.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @TableName d_user
 */
@TableName(value ="d_user")
@Data
@Schema(name = "用户User" ,description = "用户对象")
public class DUser implements Serializable {
    @TableId
    @Schema(description = "用户id")
    private Integer uid;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户密码")
    private String password;

    @Schema(description = "用户状态")
    private Integer userStatus;

    @Schema(description = "更新时间")
    private Date updateDate;

    @Schema(description = "绑定角色的Id")
    private Integer roleId;

    @Schema(description = "用户联系电话")
    private String phoneNumber;

    @Schema(description = "角色名称")
    @TableField(exist = false)
    private String roleName;

    @Schema(description = "拥有的权限")
    @TableField(exist = false)
    private Integer[] powersId;

    private static final long serialVersionUID = 1L;
}